/*
 * $Id: TcpAddress.h,v 1.3 2005-07-23 09:22:42 bacon Exp $
 */

#ifndef _XPP_NET_TCPADDRESS_CLASS_
#define _XPP_NET_TCPADDRESS_CLASS_

#include <xpp/net/InetAddress.h>

namespace xpp
{
	namespace net
	{

		class TcpAddress: public InetAddress
		{
		public:
			TcpAddress ();
			TcpAddress (int family); 
			TcpAddress (const InetAddress& adr);
			TcpAddress (const struct sockaddr_in& adr);
			TcpAddress (const struct sockaddr_in6& adr);

			TcpAddress& operator= (const InetAddress& adr);
			TcpAddress& operator= (const struct sockaddr_storage& adr);
			TcpAddress& operator= (const struct sockaddr_in& adr);
			TcpAddress& operator= (const struct sockaddr_in6& adr);
		};

	}
}

#endif
